package com.alks.function.mapper.biocontrol.deptwork;

import com.alks.entity.data.entity.PsScheduleLot;
import com.alks.function.data.dto.biocontrol.deptwork.ScheduleLotDto;
import com.alks.function.data.request.biocontrol.deptwork.ScheduleLotRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ms
 * @since 2024-01-04
 */
public interface BC_DW_PsScheduleLotMapper extends BaseMapper<PsScheduleLot> {

    /*同步成型进度安排和指令表中的数据*/
    void scheduleLotUp();

    /*订单资料查询*/
    List<ScheduleLotDto> getScheduleLotQuery(@Param("request") ScheduleLotRequest request, @Param("companyId") String companyId);

    /*删除回滚*/
    void scheduleHeadDelete(@Param("scheduleQty") Map<String, BigDecimal> scheduleQty, @Param("companyId") String companyId);

    /*如果指令表删除则同步删除*/
    void scheduleLotUp2();
}
